﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Numerics;
using System.Text;
using System.Threading.Tasks;

namespace ChineseRemainderTheorem.Core
{
    public sealed class SecretSharingOperation
    {
        #region Fields

        private readonly BigInteger _secret;

        private readonly int _index;

        private readonly BigInteger _mod;

        private readonly int _power;

        #endregion

        #region Properties

        public int Power
        {
            get { return _power; }
        }

        public BigInteger Secret
        {
            get
            {
                return _secret;
            }
        }

        public int Index
        {
            get { return _index; }
        }

        public BigInteger Mod
        {
            get { return _mod; }
        }

        #endregion

        #region Constructors

        public SecretSharingOperation(BigInteger secret, int index, BigInteger mod, int power)
        {
            _secret = secret;
            _index = index;
            _mod = mod;
            _power = power;
        }

        #endregion
    }
}
